package com.example.myapplication;

import android.app.Activity;
import android.app.KeyguardManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

/**
 * 闪屏页面，展示SDK版本信息...
 */
public class SplashActivity extends Activity {
    private Context mContext;
    Button butblte=null;//定义一个按键控件,控制蓝牙搜索的
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mContext = this;
        setContentView(R.layout.activity_splash);
        setOnClick();
    }

    private void setOnClick() {
        //跳转主页面
        Button btnSelect = findViewById(R.id.btn_select);
        btnSelect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });

        //跳转设置界面，删除和更新人脸数据
        Button btnSet = findViewById(R.id.btn_select3);
        btnSet.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });

        //跳转后台设置界面，主要是网址配置，Log输出开关，数字参数等
        Button btnInfoControl = findViewById(R.id.btn_select2);
        btnInfoControl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(mContext, MainActivity.class));
            }
        });
    }
}
